<% include header %>

      <div class="row text-center">
        <h2>
          <% if (tag=='tag_baby') { %>
              分类：母婴商品
          <% }%>
          <% if (tag=='tag_toy') { %>
              分类：玩具
          <% }%>
          <% if (tag=='tag_cloth_man') { %>
              分类：精品男装
          <% }%>
          <% if (tag=='tag_cloth_lady') { %>
              分类：潮流女装
          <% }%>
        </h2>
      </div>

      <div class="row">
        <% items.forEach(function (item, index) { %>
            <div class="col-sm-6 col-md-4 col-lg-3 ">
              <div class="thumbnail">
                <a href="/item/<%= item._id %>" title="<%= item.name %>"><img class="lazy" width="300" height="150" src="/includes/img/<%= item.imgpath %>" alt="<%= item.name %>"></a>
                <div class="caption">
                  <h3> 
                    <a href="/item/<%= item._id %>" title="<%= item.name %>"><%= item.name %></a>
                  </h3>
                  <% if (item.tags.indexOf('tag_baby') != -1) { %> 
                    <a href="/tag/tag_baby"><span class="label label-info">母婴</span></a>
                  <% } %> 
                  <% if (item.tags.indexOf('tag_toy') != -1) { %> 
                    <a href="/tag/tag_toy"><span class="label label-info">玩具</span></a>
                  <% } %>
                  <% if (item.tags.indexOf('tag_cloth_man') != -1) { %> 
                    <a href="/tag/tag_cloth_man"><span class="label label-info">男装</span></a>
                  <% } %>
                  <% if (item.tags.indexOf('tag_cloth_lady') != -1) { %> 
                    <a href="/tag/tag_cloth_lady"><span class="label label-info">女装</span></a>
                  <% } %>
                  <p>
                    <h5>优惠价：&#65509;<%= item.price %></h5>
                    <h5>浏览次数：<%= item.pv %></h5>
                  </p>
                </div>
              </div>
            </div>
        <% }) %>
      </div><!-- /.row -->

<%- include paging %>
<%- include footer %>